package xyz.hzxiao.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.hzxiao.entity.order.DemoOrderEntity;
import xyz.hzxiao.entity.user.DemoUserEntity;
import xyz.hzxiao.result.JsonResult;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author FuXx
 * @since 2023-12-05
 */
public interface DemoUserService extends IService<DemoUserEntity> {

    JsonResult<DemoUserEntity> login(String userName, String pass);

    JsonResult<List<DemoOrderEntity>> queryOrdersByUserId(Integer userId);

    JsonResult<List<DemoUserEntity>> getByOptionNumber(String optionNumber);
}
